<?php 
/**create by fu */
namespace app\api\controller\v1;

use think\Controller;
use app\api\service\Order as serviceOrder;

/**
 * 
 */
class Test extends Controller
{
	
	protected $oProducts = [
		[
			'product_id' => 1,
			'count'      => 3,
		],
		[
			'product_id' => 2,
			'count'      => 3,
		],
		[
			'product_id' => 3,
			'count'      => 3,
		],
	];
	public function index(){
		p('index');
	}

	public function one(){
		$service = new serviceOrder();
		$service->place(1,$this->oProducts);
		p($service->makeOrderNo());

	}
}









 ?>